package com.tydic.helloserviceapi.service;

import com.tydic.helloserviceapi.domain.Goods;
import org.springframework.web.bind.annotation.*;

import java.math.BigDecimal;

@RequestMapping(value = "hello")
public interface HelloServiceApi {
    @RequestMapping(value="/hello3",method= RequestMethod.POST)
    String hello(@RequestParam("name") String name);
    @RequestMapping(value="/hello4",method= RequestMethod.POST)
    Goods hello(@RequestHeader("name") String name,@RequestHeader("price") BigDecimal price);
    @RequestMapping(value="/hello5",method= RequestMethod.POST)
    String hello(@RequestBody Goods goods);

}
